import Vue from 'vue'
import Router from 'vue-router'
// import Layout from '@/views/layout/Layout'

Vue.use(Router)

export const constantRouterMap = [{
  path: '',
  component: () =>
            import('@/views/home/index'),
  hidden: true
},
{
  path: '/404',
  component: () =>
            import('@/views/errorPage/404'),
  hidden: true
},
{
  path: '/401',
  component: () =>
            import('@/views/errorPage/401'),
  hidden: true
}
]

export default new Router({
  mode: 'history',
  scrollBehavior: () => ({
    y: 0
  }),
  routes: constantRouterMap
})
